
public enum MsgCommands
{
	UNDEFINED, 
	DEODEX,
	ADDROOT,
	PATCH_HEBREW,
	HOSTS,
	APN,
	RINGER,
	MMS,
	CAMERA,
	INTERNET,
	CONTACTS_RULER,
	MUSIC_RULER,
	COPY_TRANSLATION,
	COPY_PREPARED_TRANSLATION,
	THEME,ADD_APPLICATIONS,
	REMOVE_APPLICATIONS,
	EDIT_ROM_NAME,
	PACK_ROM,
	COMPILE,
	DECOMPILE,
	WRITE,
	ACTIONACTIVE,
	EXTRACT,
	INIT,
	CLEAR_TEMP_FILES,
	TEST,
	ANDROID_LOCK_SCREEN,
	PUZZLE_LOCK_SCREEN,
	CRT,
	ADBWIFI;
	
	static public MsgCommands convert(int i)
	{
		for (MsgCommands val : values())
		{
			if (val.ordinal()==i)
				return val;
		}
		//if got here it means an invalid integer was passed
		Log.error("MsgCommands Convert recieved invalid int value: "+i);
		Thread.dumpStack();
		return UNDEFINED;
	}
}
